import java.util.Scanner;
public class calculator {
    public static void main(String[] args) {
        Scanner scanner =new Scanner(System.in);
        System.out.println("请输入第一个整数：");
        int a = scanner.nextInt();
        System.out.println("1请输入第二个整数：");
        int b= scanner.nextInt();
        System.out.println("请输入您要进行的运算(0:表示加法运算,1:表示减法运算,2:表示乘法运算,3:表示除法运算)");
        int c=scanner.nextInt();
        switch(c){
            case 0:
                System.out.println(a+b);break;
            case 1:
                System.out.println(a-b);break;
            case 2:
                System.out.println(a*b);break;
            case 3:
                System.out.println(a/b);break;
            default:
                System.out.println("请重新输入");

        }



    }
}
